<?php
namespace app\validate;

use think\facade\Request;
use think\Validate;

class Warehouse extends  Validate{


    protected $rule =   [

        'name'=> 'require',
        'business_type_id'=>'require',
        'person_in_charge'=>'require',
        'mobile'=>'require',
        'goods_type'=>'require',

        'enterprise_name'=>'require',
        'address'=>'require',
        'longitude'=>'require',
        'dimension'=>'require',
        'warehouse_type_id'=>'require',
        'warehouse_reserves'=>'require',

    ];

    protected $message  =   [

        'name.require' => '仓库名称不能为空',
        'business_type_id.require' => '业务类型不能为空',
        'person_in_charge.require' => '负责人不能为空',
        'mobile.require' => '联系方式不能为空',
        'goods_type.require' => '货物类型不能为空',
        'enterprise_name.require' => '企业名称不能为空',
        'address.require' => '仓库名称不能为空',
        'warehouse_type_id.require' => '仓库类型不能为空',
        'longitude.require' => '经度不能为空',
        'dimension.require' => '维度不能为空',
        'warehouse_reserves.require' => '仓库储量不能为空',



    ];
}